import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-09-06
 * Time: 0:06
 */
public class test_4 {

    /*
    * */
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextLine()) { // 注意 while 处理多个 case
            String words = in.nextLine();
            String[] strings=words.split(" ");
//            for (String s : strings){
//                System.out.println(s);
//            }
            String ret ="";
            for (String word : strings){
                String tmp=word.charAt(0)+"";
                ret=ret+tmp.toUpperCase();
            }
            System.out.println(ret);
        }
    }
}
